package com.oi.test01.hw.tiMu5;

/**
 * @author bin
 * @date 2025 - 03 -17
 **/
public class CheckYear {
    private int year;



    public CheckYear(int year) {
        this.year = year;
    }

    public boolean isLeapYear() {
        if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
            return true;
        }
        return false;
    }
}
